package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.AqtoolsWorkerInfoMapper;
import com.ruoyi.system.domain.AqtoolsWorkerInfo;
import com.ruoyi.system.service.IAqtoolsWorkerInfoService;
import com.ruoyi.common.core.text.Convert;

/**
 * 员工信息维护Service业务层处理
 * 
 * @author ye_wj
 * @date 2025-07-31
 */
@Service
public class AqtoolsWorkerInfoServiceImpl implements IAqtoolsWorkerInfoService 
{
    @Autowired
    private AqtoolsWorkerInfoMapper aqtoolsWorkerInfoMapper;

    /**
     * 查询员工信息维护
     * 
     * @param factory 员工信息维护主键
     * @return 员工信息维护
     */
    @Override
    public AqtoolsWorkerInfo selectAqtoolsWorkerInfoByFactory(String factory)
    {
        return aqtoolsWorkerInfoMapper.selectAqtoolsWorkerInfoByFactory(factory);
    }

    /**
     * 查询员工信息维护列表
     * 
     * @param aqtoolsWorkerInfo 员工信息维护
     * @return 员工信息维护
     */
    @Override
    public List<AqtoolsWorkerInfo> selectAqtoolsWorkerInfoList(AqtoolsWorkerInfo aqtoolsWorkerInfo)
    {
        return aqtoolsWorkerInfoMapper.selectAqtoolsWorkerInfoList(aqtoolsWorkerInfo);
    }

    /**
     * 新增员工信息维护
     * 
     * @param aqtoolsWorkerInfo 员工信息维护
     * @return 结果
     */
    @Override
    public int insertAqtoolsWorkerInfo(AqtoolsWorkerInfo aqtoolsWorkerInfo)
    {
        return aqtoolsWorkerInfoMapper.insertAqtoolsWorkerInfo(aqtoolsWorkerInfo);
    }

    /**
     * 修改员工信息维护
     * 
     * @param aqtoolsWorkerInfo 员工信息维护
     * @return 结果
     */
    @Override
    public int updateAqtoolsWorkerInfo(AqtoolsWorkerInfo aqtoolsWorkerInfo)
    {
        return aqtoolsWorkerInfoMapper.updateAqtoolsWorkerInfo(aqtoolsWorkerInfo);
    }

    /**
     * 批量删除员工信息维护
     * 
     * @param factorys 需要删除的员工信息维护主键
     * @return 结果
     */
    @Override
    public int deleteAqtoolsWorkerInfoByFactorys(String factorys)
    {
        return aqtoolsWorkerInfoMapper.deleteAqtoolsWorkerInfoByFactorys(Convert.toStrArray(factorys));
    }

    /**
     * 删除员工信息维护信息
     * 
     * @param factory 员工信息维护主键
     * @return 结果
     */
    @Override
    public int deleteAqtoolsWorkerInfoByFactory(String factory)
    {
        return aqtoolsWorkerInfoMapper.deleteAqtoolsWorkerInfoByFactory(factory);
    }
}
